package chapter8;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2018-03-19 下午5:30
 */
@FunctionalInterface
interface IMessageB<R> {
    R upper();
}

public class TestDemo2 {
    public static void main(String[] args) {
        IMessageB<String> messageB = "yootk"::toUpperCase;
        String str = messageB.upper();
        System.out.println(str);
    }
}
